package com.itheima.exception;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Demo02 {

    public static void main(String[] args)throws ParseException {
       // dance();
        sing();
    }


    public static void sing() {
        int[] arr= new int[3];
        System.out.println(arr[4]);
    }

    public static void dance() throws ParseException {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
            Date date = sdf.parse("2021年10月13月");
            System.out.println(date);

    }
}
